package com.kidedu.service;

import java.util.List;

import net.sf.json.JSONObject;

import org.apache.poi.ss.usermodel.Sheet;

import com.kidedu.entity.KGrade;
import com.kidedu.entity.KOrder;
import com.kidedu.entity.KStudent;
import com.kidedu.entity.dto.KGASDTO;
import com.kidedu.entity.dto.KGradeDTO;
import com.kidedu.util.Pagination;

public interface IKGradeService {
	
	/*public abstract int addKClass(KClass kClass);*/
	
	
	public abstract int deletekGradeList(String gId);
	
	
	/*public abstract int updateKClass(KClass kClass);*/
	
	
	public abstract Pagination<KGradeDTO> selectkGradeList(int pageNo);
	
	public abstract JSONObject BatchImport(Sheet sheet);
	
	public abstract Pagination<KGrade> selectkGradeList(int pageNo,String keywords);
	
	public abstract Pagination<KGrade> selectkGradeListPass(int pageNo);
	
	public abstract Pagination<KGrade> selectkGradeListByW(int pageNo,int week);
	
	public Pagination<KGradeDTO> selectkGradePreList(int pageNo, List<KOrder> kOrderList);
	
	public  List<KGrade> selectMysGrade(List<String> gradeId);
	
	public abstract Pagination<KGrade> selectkGradeListByC(int pageNo,String ClassId);
	
	/*获取某一教师所授班级及学生*/
	public KGASDTO getGASbyTea(String t_id);
	
	/*教师所授学生，分页*/
	public Pagination<KStudent> getStubyTeaPage(String t_id,int pageNo);

	abstract boolean  updateGrade(KGrade grade);
	
	abstract boolean addGrade(KGrade grade);
}
